package com.gss.module.generator.entity;

import lombok.Data;

/**
 * @author DYang
 * @date 2023/5/25
 * 类字段
 */
@Data
public class FieldEntity {

    /**
     * 是否主键
     */
    private boolean pk;

    /**
     * 作用域
     */
    private String scope;

    /**
     * 字段类型
     */
    private String fieldType;

    /**
     * 字段名称
     */
    private String fieldName;

    /**
     * 字段描述
     */
    private String fieldDesc;

    public FieldEntity pk(boolean pk){
        this.pk = pk;
        return this;
    }

    public FieldEntity scope(String scope){
        this.scope = scope;
        return this;
    }

    public FieldEntity fieldType(String fieldType){
        this.fieldType = fieldType;
        return this;
    }

    public FieldEntity fieldName(String fieldName){
        this.fieldName = fieldName;
        return this;
    }

    public FieldEntity fieldDesc(String fieldDesc){
        this.fieldDesc = fieldDesc;
        return this;
    }
}
